﻿using DotnetSpider.DataFlow;
using DotnetSpider.DataFlow.Parser;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace DSpider.Utilities
{
    public class NewsParse : DataParserBase
    {
        protected override Task<DataFlowResult> Parse(DataFlowContext context)
        {
            var selectable = context.GetSelectable();
            var nsp = Tools.NoHTML(selectable.XPath(@"//*[@id=""qrcode""]/div/div[2]/p[2]").GetValue());
            return Task.FromResult(DataFlowResult.Success);
        }
    }
}
